package loaderlib.command
{
	public class BitsCommand
	{
		private var _controlBits:uint;
		
		public function BitsCommand()
		{
		}
		
		public function clone():BitsCommand
		{
			var newCommand:BitsCommand = new BitsCommand()
			newCommand._controlBits=this._controlBits
			return newCommand;
		}
		
		public function setRefuse(bits:uint):void
		{
			this._controlBits |= bits
		}
		
		public function checkBits(bits:uint):Boolean
		{
			if(this._controlBits & (~bits))
			{
				return false
			}
			return true
		}
		
		public function setPermission(bits:uint):void
		{
			this._controlBits &= ~bits
		}
		
		public function get bits():uint
		{
			return this._controlBits;
		}

	}
}